#ifndef RECTANGLE_HPP
#define RECTANGLE_HPP

#include <iostream>
using namespace std;

class Rectangle {
   private:
    int w, h;

   public:
    Rectangle(int w, int h) : w(w), h(h) {}
    int getArea() const { return w * h; }
    friend bool isSquare(const Rectangle &r) {
        return r.w == r.h;
    }
    friend bool operator<(const Rectangle &r1, const Rectangle &r2) {
        return r1.getArea() > r2.getArea();
    }
};

#endif